import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';

import {MainComponent} from './main.component';
import {NzSelectModule} from 'ng-zorro-antd/select';
import {NzRadioModule} from 'ng-zorro-antd/radio';
import {NzIconModule} from 'ng-zorro-antd/icon';
import {NzTreeModule} from 'ng-zorro-antd/tree';
import {NzProgressModule} from 'ng-zorro-antd/progress';
import {NzButtonModule} from 'ng-zorro-antd/button';
import {PropsConfigComponent} from './props-config/props-config.component';
import {NzFormModule} from 'ng-zorro-antd/form';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {NzInputModule} from 'ng-zorro-antd/input';
import {NzDropDownModule} from 'ng-zorro-antd/dropdown';
import {ResultConfirmComponent} from './result-confirm/result-confirm.component';
import {NzSpinModule} from 'ng-zorro-antd/spin';
import {CanDeactivateMain} from './main.service';


@NgModule({
  declarations: [MainComponent, PropsConfigComponent, ResultConfirmComponent],
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    NzSelectModule,
    NzRadioModule,
    NzIconModule,
    NzTreeModule,
    NzProgressModule,
    NzButtonModule,
    NzFormModule,
    NzInputModule,
    NzDropDownModule,
    NzSpinModule,
  ],
  exports: [
    MainComponent
  ],
  providers: [CanDeactivateMain]
})
export class MainModule {
}
